﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Runtime.Remoting.Messaging;

namespace DGM.Util.Helpers.Thread
{
    public static class AsyncMethodCallerHelper
    {

       /* public static void CallMethodAsync(Action callback, params Action[] action)
        {

        }
        */
        
    }

    /*public class AsyncMethodHolder
    {
        private Action _callback;
        public AsyncMethodHolder(Action callback, params Action[] action)
        {
            _callback = callback;

            List<Task> tasks = new List<Task>();

            Task.Factory.ContinueWhenAll(tasks.ToArray(), CallsDone, CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.FromCurrentSynchronizationContext());
        }

        private static void CallsDone(Task[] obj)
        {
            throw new NotImplementedException();
        }
    }*/
}
